//
//  LJFriend.h
//  LJClientKit
//
//  Created by Anton Chebotaev on 9/11/09.
//  Copyright 2009 AntonChebotaev. All rights reserved.
//

#import <Cocoa/Cocoa.h>

typedef enum _LJFriendType {
	LJPerson = 0,
	LJCommunity,
	LJSyndicated,
	LJOtherFriendType
} LJFriendType;


@interface LJFriend : NSObject <NSCoding> {
	NSString *username;
	NSString *fullname;
	LJFriendType type;
}

@property (readonly) NSString *username;
@property (readonly) NSString *fullname;
@property (readonly) LJFriendType type;

- initWithUsername: (NSString *)aUsername fullName:(NSString *)aFullName type:(LJFriendType)aType;
+ friendWithUsername: (NSString *)aUsername fullName:(NSString *)aFullName type:(LJFriendType)aType;

- (BOOL)isEqual:(id)anObject;
- (NSString *)description;
- (NSUInteger)hash;

@end
